<?php
if (!is_user_logged_in()){
    $post = get_post(get_option('gzdsx_pos_page_id'));
    wp_redirect(wp_login_url(get_post_permalink($post)));
    exit();
}
?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>POS For Woocommerce</title>
    <meta name="keywords" content="POS For Woocommerce By gzdsx">
    <meta name="description" content="POS For Woocommerce By gzdsx">
    <meta name="render" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="wp-nonce" content="<?php echo wp_create_nonce('wp_rest') ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link
        href="https://noodlebox.ie//wp-content/plugins/yith-point-of-sale-for-woocommerce-premium/assets/fonts/yith-pos-icon/yith-pos-icon.css?ver=2.19.0"
        rel="stylesheet" type="text/css">
    <link href="<?php echo GZDSX_POS_URL . '/css/index.css?v=' . time(); ?>" rel="stylesheet" type="text/css">
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCNN6AquuEdTY8mwR2WwzP5toj97s46Tv4&libraries=places&language=en"></script>
    </script>
    <script>
        var posSettings = <?php echo json_encode([
            'root' => GZDSX_POS_URL
        ])?>;
    </script>
</head>
<body>
<div id="app"></div>
<script src="<?php echo GZDSX_POS_URL . '/js/index.js?v=' . time(); ?>" type="text/javascript"></script>
</body>
</html>
